<?php

use yii\db\Migration;

/**
 * Class m180118_110758_alter_columns_pageage_initiation
 */
class m180118_110758_alter_columns_pageage_initiation extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('package_initiation','future_price_space',$this->text()->comment('未来价格可谈判空间'));
        $this->addColumn('package_initiation','price_detail1',$this->text()->comment('获取其他买家的信息、报价情况、工作进展情况'));
        $this->addColumn('package_initiation','price_detail2',$this->text()->comment('采取通道方式成交的，明确通道主体及费用'));
        $this->addColumn('package_initiation','price_detail3',$this->text()->comment('与卖家进行价格谈判，并初步确定成交价格、成交方式、成交时间及付款方式'));
        $this->addColumn('package_initiation','price_detail4',$this->text()->comment('是否已经获得投资人和通道的收购承诺函'));
        $this->addColumn('package_initiation','price_detail5',$this->text()->comment('资产包交接清单的确认，原件资料核对无误'));
        $this->addColumn('package_initiation','price_detail6',$this->text()->comment('资产包存在的风险'));

    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180118_110758_alter_columns_pageage_initiation cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180118_110758_alter_columns_pageage_initiation cannot be reverted.\n";

        return false;
    }
    */
}
